'''
author:        Wang Chenyang <cy-wang21@mails.tsinghua.edu.cn>
date:          2024-09-24 00:00:00
Copyright © Department of Physics, Tsinghua University. All rights reserved
'''

import literature_format as lf


def test_sharp_tags():
    print(lf.zotero.parse_sharp_tags("#Hello"))


def test_title_abstract():
    print(lf.zotero.get_title_and_abstract("QCVBLK9S"))


def test_item_tags():
    all_items = lf.zotero.get_all_tagged_items()
    tagged_items = [
        "66IVRAN4", 
        "CY2NGVEZ",
        "NDW2F77C",
        "LHDQD56X",
        "A5IFN3J9",
        "YZRI548C",
        "NWEL8ZHL",
        "3C6W4SAR",
        "72D7DY49",
    ]

    untagged_items = [
        "PTYIBQBR",
        "C8FAQKER",
        "DUBLH84J",
        "94KBIQJW",
        "3Z5N9PM7",
        "LB9IM6EE",
        "2W26GPS2",
    ]

    tagged_check = [item in all_items for item in tagged_items]
    untagged_check = [item in all_items for item in untagged_items]
    print(tagged_check)
    print(untagged_check)

# test_sharp_tags()
test_title_abstract()
# test_item_tags()
